import Index from '@/components/Index'
import Auth from '@/components/Auth'
import SocialResume from '@/components/SocialResume'
import SchoolResume from '@/components/SchoolResume'
import InternshipResume from '@/components/InternshipResume'
import InterviewManage from '@/components/InterviewManage'
import RecruitManage from '@/components/RecruitManage'
import PushManage from '@/components/PushManage'
import Analysis from '@/components/Analysis'
import Permission from '@/components/Permission'
import ViewResume from '@/components/ViewResume'


/**
 * 统一的路由信息
 */
const routes = [
  {
    path: '/resume_pool',
    name: 'resume_pool',
    label: '人才库',
    grep: 'member',
    menu: {
      level: 2,
      child: ['social_resume','school_resume','internship_resume'],
      icon: 'person'
    }
  }, {
    path: '/resume_pool/social_resume',
    name: 'social_resume',
    component: SocialResume,
    label: '社招',
    grep: 'member',
    menu: {
      icon: 'person',
      parent: 'resume_pool'
    }
  },{
    path: '/resume_pool/school_resume',
    name: 'school_resume',
    component: SchoolResume,
    label: '校招',
    grep: 'member',
    menu: {
      icon: 'person',
      parent: 'resume_pool'
    }
  },{
    path: '/resume_pool/internship_resume',
    name: 'internship_resume',
    component: InternshipResume,
    label: '实习',
    grep: 'member',
    menu: {
      icon: 'person',
      parent: 'resume_pool'
    }
  },{
    path: '/recruit',
    name: 'recruit',
    label: '招聘',
    grep: 'member',
    menu: {
      level: 2,
      child: ['interview_manage','recruit_manage'],
      icon: 'ios-people'
    }
  },{
    path: '/recruit/interview_manage',
    name: 'interview_manage',
    component: InterviewManage,
    label: '面试管理',
    grep: 'member',
    menu: {
      icon: 'ios-people',
      parent: 'recruit'
    }
  },{
    path: '/recruit/recruit_manage',
    name: 'recruit_manage',
    component: RecruitManage,
    label: '招聘管理',
    grep: 'member',
    menu: {
      icon: 'ios-people',
      parent: 'recruit'
    }
  },{
    path: '/internal_push',
    name: 'internal_push',
    label: '内推',
    grep: 'member',
    menu: {
      level: 2,
      child: ['push_manage'],
      icon: 'person-stalker'
    }
  },{
    path: '/internal_push/push_manage',
    name: 'push_manage',
    component: PushManage,
    label: '内推管理',
    grep: 'member',
    menu: {
      icon: 'ios-people',
      parent: 'internal_push'
    }
  },{
    path: '/analysis',
    name: 'analysis',
    component: Analysis,
    label: '分析',
    grep: 'member',
    menu: {
      level: 1,
      icon: 'ios-pulse-strong'
    }
  },
  // {
  //   path: '/permission',
  //   name: 'permission',
  //   component: Permission,
  //   label: '权限',
  //   grep: 'member',
  //   menu: {
  //     level: 1,
  //     icon: 'android-options'
  //   }
  // },
  {
    path: '/auth',
    name: 'auth',
    component: Auth
  },{
    path: '/',
    name: 'index',
    component: Index
  },{
    path: '/resume_pool/view_resume/:userId',
    name: 'view_resume',
    component: ViewResume,
    label: '简历查看',
    grep: 'member',
    menu: {
      icon: 'ios-people',
      parent: 'resume_pool'
    }
  }
];



export default {
  routes: routes
}
